package com.guge.sports.toolPackage.interfaces;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.guge.sports.toolPackage.utils.MyPager;

import java.util.List;

public interface BaseServiceInterface<T extends Model> {
    List<T> selectAll();
    List<T> selectList(T entity);
    T selectOne(T entity);
    T selectById(T entity);
    Integer selectAllCount();
    Integer selectCount(T entity);
    boolean deleteById(T entity);
    boolean delete(T entity);
    boolean updateById(T entity);
    boolean deleteBatchIds(List<Integer> ids);
    boolean insert(T entity);
    MyPager<T> selectPage(MyPager<T> myPager, T entity);


}
